package com.ruoyi.project.system.mapper;

import java.util.List;
import com.ruoyi.project.system.domain.SysAgreement;

/**
 * Mapper接口
 * 
 * @author jjp
 * @date 2020-04-14
 */
public interface SysAgreementMapper 
{
    /**
     * 查询
     * 
     * @param agreementId ID
     * @return
     */
    public SysAgreement selectSysAgreementById(Long agreementId);

    /**
     * 查询列表
     * 
     * @param sysAgreement
     * @return 集合
     */
    public List<SysAgreement> selectSysAgreementList(SysAgreement sysAgreement);

    /**
     * 新增
     * 
     * @param sysAgreement
     * @return 结果
     */
    public int insertSysAgreement(SysAgreement sysAgreement);

    /**
     * 修改
     * 
     * @param sysAgreement
     * @return 结果
     */
    public int updateSysAgreement(SysAgreement sysAgreement);

    /**
     * 删除
     * 
     * @param agreementId ID
     * @return 结果
     */
    public int deleteSysAgreementById(Long agreementId);

    /**
     * 批量删除
     * 
     * @param agreementIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysAgreementByIds(Long[] agreementIds);
    /**
     *   显示用户协议
     * */
    public SysAgreement queryByType(String agreementType);


    public List<SysAgreement> showAgreement(SysAgreement sysAgreement);
}
